<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
      
        .header {
            width: 710px;
            /* background-color: rebeccapurple; */
            margin: 150px auto;
        }

        .header span {
            font-size: 25px;
            width: 150px;
            /* background-color: red; */
            position: relative;
            left: 280px;
        }

        .main {
            width: 710px;
            height: 290px;
            /* background-color: seagreen; */
            margin: -140px auto;
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
        }

        .main div {
            width: 120px;
            height: 120px;
            /* background-color: salmon; */
            text-align: center;
             border: 1px solid #666666; 
            margin-top: 15px;
        }

        .main div span {
            position: relative;
            top: 25px;
            z-index: 99;
            font-size: 33px;
        }

        .main div:nth-child(1):hover {
            background-image: url('1.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
            
            
        }

        .main div:nth-child(2):hover {
            background-image: url('2.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(3):hover {
            background-image: url('3.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(4):hover {
            background-image: url('4.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(5):hover {
            background-image: url('5.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(6):hover {
            background-image: url('6.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(7):hover {
            background-image: url('7.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(8):hover {
            background-image: url('8.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(9):hover {
            background-image: url('9.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
         .main div:nth-child(10):hover {
            background-image: url('10.jpg');
            width: 120px;
            height: 120px;
            text-indent: -5000px;
        }
    </style>
</head>

<body>
    <div class="header">
        <span>名车车标展示</span>
    </div>
    <div class="main">
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>
        <div><span>BMW  宝马车</span></div>  
       <div><span>BMW  宝马车</span></div>  
    </div>
</body>

</html>
 